package com.tjp.eight.ui.fragment.loginreg;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/3.
 */

public interface RegService {
    @Headers({"Content-Type: application/json", "Accept: application/json"})
    @POST("user/sendmobilecode")
    Observable<RegResultModel> toReg(@Body RequestBody requestBody);

    @Headers({"Content-Type: application/json", "Accept:application/json"})
    @POST("user/wxlogin")
    Observable<LoginResultModel> toLoginWX(@Body RequestBody requestBody);

    @Headers({"Content-Type: application/json", "Accept:application/json"})
    @POST("user/mobilelogin")
    Observable<LoginResultModel> toLoginPhone(@Body RequestBody requestBody);
}
